﻿using System.ComponentModel;

namespace EasyTask.EasyEnum
{
    public enum ServiceState
    {
        /// <summary>
        /// 准备运行
        /// </summary>
        [Description("准备运行")]
        PrepareStart = 0,
        /// <summary>
        /// 已经运行
        /// </summary>
        [Description("已经运行")]
        Started = 1,
        /// <summary>
        /// 准备停止
        /// </summary>
        [Description("准备停止")]
        PrepareStop = 2,
        /// <summary>
        /// 已经停止
        /// </summary>
        [Description("已经停止")]
        Stoped = -2,
        /// <summary>
        /// 准备暂停
        /// </summary>
        [Description("准备暂停")]
        PreparePasue = 3,
        /// <summary>
        /// 已经暂停
        /// </summary>
        [Description("已经暂停")]
        Paused = -3,
        /// <summary>
        /// 准备更新
        /// </summary>
        [Description("准备更新")]
        PrepareUpdate = 4,
        /// <summary>
        /// 手动从服务中停止
        /// </summary>
        [Description("手动从服务中停止")]
        ManualStoped = -9,

        /// <summary>
        /// 未知状态
        /// </summary>
        [Description("未知状态")]
        Unknow = -8,

        /// <summary>
        /// 无效状态
        /// </summary>
        [Description("无效状态")]
        Invalid = -7,
    }
}
